using MicroMsg.UI.Converter;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
namespace MicroMsg.UI.UserContrl
{
	public class ChatLeftMap : ChatMapItem
	{
		private bool _contentLoaded;
		public ChatLeftMap()
		{
			this.InitializeComponent();
		}
		private void tbLocationInfo_Loaded(object sender, RoutedEventArgs e)
		{
			Binding binding = new Binding();
			binding.set_Source((TextBlock)sender);
			binding.set_Path(new PropertyPath("Tag", new object[0]));
			binding.set_Converter(new ChatMapInfoSwitchConverter());
			((TextBlock)sender).SetBinding(UIElement.VisibilityProperty, binding);
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/UI/Chat/Map/ChatLeftMap.xaml", 2));
		}
	}
}
